var $tool = {};

//获取字典
$tool.getDict = function (dict, id) {
    var obj = {};
    var color = '';
    dict.forEach((elem, index) => {
        if (id == elem.value) {
            obj = elem;
            return;
        }
    }); 
    var ret = <span style={"color:" + obj.color}>{obj.label}</span>;
    return ret;
};

$tool.getDict1 = function () {
    return "123";
};

export default $tool; 